import './assets/reset.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import 'virtual:uno.css'
import 'element-plus/dist/index.css'
import '@/vxe'
import { useUserStore } from './stores'
const app = createApp(App)
app.use(createPinia())
app.use(router)
const userStore = useUserStore()
let localData = localStorage.getItem('userInfo')
if (localData) {
  localData = JSON.parse(localData)
  // @ts-ignore
  userStore.setUserInfo(localData)
}

app.mount('#app')
